﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Logoned.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.CommonResourcesInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    视频资源编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <% Html.RenderPartial("TopUc"); %>
        <% Html.RenderPartial("NavUc", 4); %>
        <% Html.RenderPartial("ResourcesNavUc", Model.Type); %>
    </table>
    <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td height="200" align="center" valign="top" class="contentBackImg">
                <table width="950" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="28" align="left" background="<%=ResolveUrl("~/Content/images/5_01_1.gif")%>">
                            <table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="22">
                                    </td>
                                    <td width="677">
                                        <div align="left">
                                            <span class="style10">上传</span>
                                        </div>
                                    </td>
                                    <td width="146">
                                        &nbsp;
                                    </td>
                                    <td width="102">
                                        &nbsp;
                                    </td>
                                    <td width="52">
                                        <a href="<%=Url.Action("Index",new{type=Model.Type}) %>" class="style11">返回</a>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" valign="top" background="<%=ResolveUrl("~/Content/images/5_02_1.gif")%>">
                            <table width="944" border="0" cellspacing="0" cellpadding="0">
                                <tr align="left">
                                    <td valign="top" bgcolor="#FFFFFF">
                                        <% using (Html.BeginForm("CommonEdit", "Resources", new { Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" }))
                                           {%>
                                        <fieldset>
                                            <%=Html.HiddenFor(o=>o.Type) %>
                                            <div class="editor-label">
                                                <%: Html.LabelFor(model => model.Title) %>
                                            </div>
                                            <div class="editor-field">
                                                <%: Html.TextBoxFor(model => model.Title) %>
                                                <%: Html.ValidationMessageFor(model => model.Title) %>
                                            </div>
                                            <div class="editor-label">
                                                <%: Html.LabelFor(model => model.Introduction) %>
                                            </div>
                                            <div class="editor-field">
                                                <%: Html.TextBoxFor(model => model.Introduction,new{@class="longText"})%>
                                                <%: Html.ValidationMessageFor(model => model.Introduction)%>
                                            </div>
                                            <div class="editor-label">
                                                <%: Html.LabelFor(model => model.Author) %>
                                            </div>
                                            <div class="editor-field">
                                                <%: Html.TextBoxFor(model => model.Author) %>
                                                <%: Html.ValidationMessageFor(model => model.Author) %>
                                            </div>
                                            <div class="editor-label">
                                                <%: Html.LabelFor(model => model.Source) %>
                                            </div>
                                            <div class="editor-field">
                                                <%: Html.TextBoxFor(model => model.Source)%>
                                                <%: Html.ValidationMessageFor(model => model.Source)%>
                                            </div>
                                            <div class="editor-label">
                                                <%: Html.LabelFor(model => model.Keyword) %>
                                            </div>
                                            <div class="editor-field">
                                                <%: Html.TextBoxFor(model => model.Keyword)%>
                                                <%: Html.ValidationMessageFor(model => model.Keyword)%>
                                            </div>
                                            <div class="editor-label">
                                                <label>
                                                    视频</label>
                                            </div>
                                            <div class="editor-field">
                                                <input type="file" name="UpFile" />
                                                <%: Html.ValidationMessageFor(model => model.FileName) %>
                                            </div>
                                            <p>
                                                <input type="submit" value="保存" /><%=Html.ActionButton("返回", "Index", new { type = Model.Type })%>
                                            </p>
                                        </fieldset>
                                        <% } %>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="13" bgcolor="#FFFFFF">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td height="3" background="<%=ResolveUrl("~/Content/images/5_04_1.gif")%>">
                        </td>
                    </tr>
                </table>
                <table width="1000" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script src="<%=ResolveUrl("~/Scripts/xheditor-1.1.12-zh-cn.min.js") %>" type="text/javascript"></script>
    <script type="text/javascript">
    </script>
</asp:Content>
